package com.liu.design.behavior.observer;

/**
 * @author LIU
 * @version 1.0
 * @description: 观察者模式
 * @date 2022/12/20 10:44
 */
public class _Test {
    public static void main(String[] args) {
        MMTiktok mmTiktok = new MMTiktok();

        PersonFans fans = new PersonFans();
        //关注主播
        fans.follow(mmTiktok);

        //关注主播
        mmTiktok.addFans(new RobotFans());


        mmTiktok.startSell();

        System.out.println("================");

        mmTiktok.endSell();
    }
}
